using System.Collections.Generic;

namespace UniAspect.Common
{
    public static class CollectionsExtensions
    {
        /// <summary>
        /// Adds a value to the collection in a nicer way
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="collection"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static ICollection<T> AddA<T>(this ICollection<T> collection, T value)
        {
            collection.Add(value);
            return collection;
        }
    }
}